﻿<Window x:Class="ALPShell.ShellWindow"
        xmlns:cal="http://www.codeplex.com/CompositeWPF"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  
        Title="流水线制造要领提示系统">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="180"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="#C9D7E5" BorderThickness="0 0 1 0">
                <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Button Command="{Binding SwitchUser}" Grid.Row="0" HorizontalAlignment="Left" Margin="20 10">
                        <Button.Template>
                            <ControlTemplate>
                                <Border x:Name="borderButton" Width="50" Height="50" CornerRadius="25" BorderBrush="#A3BDE6" 
                                        BorderThickness="3" Background="#F7F9FD">
                                    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                        <Path Data="M20,15L13,20 35,20" Stroke="#A3BDE6" StrokeThickness="3"></Path>
                                        <Path Data="M20,31L13,26 35,26" Stroke="#A3BDE6" StrokeThickness="3"></Path>
                                    </Grid>
                                </Border>
                                <ControlTemplate.Triggers>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Background" TargetName="borderButton" Value="#EFEAEF"></Setter>
                                    </Trigger>
                                </ControlTemplate.Triggers>
                            </ControlTemplate>
                        </Button.Template>
                    </Button>
                    <ContentControl Grid.Row="1" cal:RegionManager.RegionName="HeaderRegion" HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"></ContentControl>
                </Grid>
            </Border>
            <ContentControl Grid.Column="1" cal:RegionManager.RegionName="ContentRegion" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></ContentControl>
        </Grid>
    </Grid>
</Window>
